package com.sservice.service.service;

import com.sservice.model.entity.ApplyPayBill;
import com.sservice.model.vo.ApplyPayBillVo;
import com.sservice.base.entity.dto.ListResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;

/**
 * Created by suweiming on 2017/12/20.
 */

public interface IApplyPayBillService {
    Object create(ApplyPayBill apb);
    Object cancel(ApplyPayBill apb);

    ListResult page(ApplyPayBillVo apb);

    /**
     *  已付金额变化
     * @param id
     * @param payed 负数表示退回，正数表示付出
     * @return
     */
    int changeNumber(Integer id, BigDecimal payed);
    public OutputStream export(ApplyPayBillVo apb, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
